# It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Desktop Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Script to show the company legal notice in login page # Configuration Type - COMPUTER # Dependency file - PolicyBanner.rtf # !/usr/bin/bash sudo cp -av "./PolicyBanner.rtf" "/Library/Security" sudo chmod o+r /Library/Security/PolicyBanner.rtf errcode=$? if [ "$errcode" -ne 0 ]; then echo "" echo "Failed to copy with errorcode $errcode" 1>&2 echo "" exit 1 fi echo "Policy banner will be displayed in every login" 1>&2